package cn.tedu._02notice.mapper;

import cn.tedu._02notice.pojo.dto.NoticeListQuary;
import cn.tedu._02notice.pojo.entity.Notice;
import cn.tedu._02notice.pojo.vo.NoticeDetailInfoVO;
import cn.tedu._02notice.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticeMapper {
    int insertNotice(Notice notice);
//    多个形参,mybatis将会将其默认为param1,param2,param3...
    List<NoticeListVO> selectNoticeList(@Param("title") String title,@Param("type") Integer type);
//    List<NoticeListVO> selectNoticeList(NoticeListQuary noticeListQuary);
    NoticeDetailInfoVO selectNoticeDetailInfo(Long id);

    int delNotice(Long id);

    void updateNotice(Notice notice);
}
